﻿using System;
using System.Data;
using System.Text;

namespace BusDiary.Entity
{
    public class DiaryStatus
    {

        #region property
        int _ID = 0;

        public int ID
        {
            get
            {
                return _ID;
            }
            set
            {
                _ID = value;
            }
        }
        DateTime _Date = DateTime.Now;

        public DateTime Date
        {
            get
            {
                return _Date;
            }
            set
            {
                _Date = value;
            }
        }
        string _Weather = string.Empty;

        public string Weather
        {
            get
            {
                return _Weather;
            }
            set
            {
                _Weather = value;
            }
        }
        string _Emotion = string.Empty;

        public string Emotion
        {
            get
            {
                return _Emotion;
            }
            set
            {
                _Emotion = value;
            }
        }
        string _Health = string.Empty;

        public string Health
        {
            get
            {
                return _Health;
            }
            set
            {
                _Health = value;
            }
        }
        DateTime _Wakeup = DateTime.Now;

        public DateTime Wakeup
        {
            get
            {
                return _Wakeup;
            }
            set
            {
                _Wakeup = value;
            }
        }
        DateTime _Sleep = DateTime.Now;

        public DateTime Sleep
        {
            get
            {
                return _Sleep;
            }
            set
            {
                _Sleep = value;
            }
        }
        #endregion
        public override string ToString()
        {
            StringBuilder builder = new StringBuilder();
            builder.AppendFormat(null, "ID={0}", ID);
            builder.Append("\r\n");
            builder.AppendFormat(null, "Date={0}", Date);
            builder.Append("\r\n");
            builder.AppendFormat(null, "Weather={0}", Weather);
            builder.Append("\r\n");
            builder.AppendFormat(null, "Emotion={0}", Emotion);
            builder.Append("\r\n");
            builder.AppendFormat(null, "Health={0}", Health);
            builder.Append("\r\n");
            builder.AppendFormat(null, "Wakeup={0}", Wakeup);
            builder.Append("\r\n");
            builder.AppendFormat(null, "Sleep={0}", Sleep);
            builder.Append("\r\n");

            return builder.ToString();
        }
    }
}
